<?php include('../data/comm.inc.php');   include('../data/myadminvar.php'); include('../func/func.php'); include('../func/adminfunc.php');  include('../global/page.class.php'); include('../include.php'); include('./checklogin.php'); switch($_REQUEST['xtype']){      case "show": 	      $msql->query("select * from `$tb_points`"); 		  $msql->next_record(); 		  $tpl->assign('fee',$msql->f('fee')); 		  $tpl->assign('liucangfee',$msql->f('liucangfee')); 		  $tpl->assign('points',$msql->f('points')); 	      $tpl->display("points.html"); 	 break; 	 case "setpoint": 	      $fee=$_POST['fee']; 		  $liucangfee=$_POST['liucangfee']; 		  $points=$_POST['points']; 		  $sql = "update `$tb_points` set fee='$fee',points='$points',liucangfee='$liucangfee'"; 		  if($msql->query($sql)){ 		       echo 1; 		  } 	 break; } ?>